package com.gklyj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gklyj.pojo.user_zhanghao;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface user_zhanghaoMapper extends BaseMapper<user_zhanghao> {

    //查找信息
    @Select("select z_id from user_zhanghao where u_id = #{u_id}")
    Integer findZ_id(Integer u_id);

    //删除信息
    @Delete("delete from user_zhanghao where u_id = #{u_id}")
    Boolean deleteByU_id(Integer u_id);
}
